package com.ddxcloud.movie.data.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.ddxcloud.common.mybatis.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
public class Activity extends BaseEntity {

    @TableId
    @Schema(description = "活动ID")
    private Integer id;

    @Schema(description = "渠道ID")
    private String channelId;

    @Schema(description = "活动名称")
    private String activityName;

    @Schema(description = "活动类型 0.派送优惠券 1.下单随机立减")
    private Integer activityType;

    @Schema(description = "活动图片")
    private String activityImg;

    @Schema(description = "活动开始时间")
    private Date startTime;

    @Schema(description = "活动结束时间")
    private Date endTime;

    @Schema(description = "活动描述")
    private String activityDesc;

    @Schema(description = "附加参数 例：派送优惠券时传绑定的优惠券ID")
    private String attach;

    @Schema(description = "位置 1.轮播广告 2.弹窗广告")
    private Integer location;
}
